﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace shenghua.Migrations
{
    public partial class addentity13 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "ShipInfo_PersonName",
                table: "Orders",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ShipInfo_PhoneNumber",
                table: "Orders",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "CommodityPicture",
                table: "OrderDetails",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ExtensionData",
                table: "OrderDetails",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "ShoppingOptionId",
                table: "OrderDetails",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "XPValue",
                table: "OrderDetails",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "OriginalPrice_MoneyType",
                table: "OrderDetails",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<double>(
                name: "OriginalPrice_Value",
                table: "OrderDetails",
                nullable: false,
                defaultValue: 0.0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ShipInfo_PersonName",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "ShipInfo_PhoneNumber",
                table: "Orders");

            migrationBuilder.DropColumn(
                name: "CommodityPicture",
                table: "OrderDetails");

            migrationBuilder.DropColumn(
                name: "ExtensionData",
                table: "OrderDetails");

            migrationBuilder.DropColumn(
                name: "ShoppingOptionId",
                table: "OrderDetails");

            migrationBuilder.DropColumn(
                name: "XPValue",
                table: "OrderDetails");

            migrationBuilder.DropColumn(
                name: "OriginalPrice_MoneyType",
                table: "OrderDetails");

            migrationBuilder.DropColumn(
                name: "OriginalPrice_Value",
                table: "OrderDetails");
        }
    }
}
